<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <include file="Public:header" />
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <include file="Public:body_top" />

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar hidden-xs">
        <div class="menu">
          <dl>
            <dt><i class="cm-order"></i>小程序</dt>
            <dd><a href="{:U('Apps/xcx_edit')}">小程序配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=xcx_msg_edit">小程序模板消息</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=storage">存储配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=sms">短信配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=withdraw">提现配置</a></dd>
            <dd><a href="{:U('Mode/index')}">首页模式图标</a></dd>
            <!-- <dd><a href="{:U('Apps/xcx_edit')}&tpl=payment">结算配置</a></dd> -->
          </dl>
          <dl>
            <dt><i class="cm-advert"></i>广告管理</dt>
            <dd><a href="{:U('Adverts/index')}">广告列表</a></dd>
            <dd><a href="{:U('Adverts/add')}">新建广告</a></dd>
          </dl>
          <dl>
            <dt><i class="icon-uniE611"></i>帮助管理</dt>
            <dd class="active"><a href="{:U('Helps/index')}">帮助列表</a></dd>
            <dd><a href="{:U('Helps/add')}">新建帮助</a></dd>
          </dl>
        </div>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="main-hd">
          <h5>帮助列表</h5>
        </div>
        <div class="main-bd">
          <div class="table-responsive">
            <table class="table table-cmcm">
              <tr>
                <th>帮助标题</th>
                <th>帮助类型</th>
                <th>帮助排序</th>
                <th>是否开启</th>
                <th>创建时间</th>
                <th>操作</th>
              </tr>
              <volist name="helps" id="vo">
                <tr>
                  <td>{$vo.title}</td>
                  <td><if condition="$vo.types eq 1 ">用户帮助<else/>店铺帮助</if></td>
                  <td>{$vo.orderby}</td>
                  <td>
                    <if condition="$vo.status eq 0 ">
                      <a href='{:U("Helps/change_status", "id=$vo[id]&status=1")}'>关闭</a>
                      <elseif condition="$vo.status eq 1 " /> <a href='{:U("Helps/change_status", "id=$vo[id]&status=0")}'>开启</a>
                    </if>
                  </td>
                  <td>{$vo.created_at}</td>
                  <td>
                    <a href="{:U('Helps/edit',array('id'=>$vo['id']))}">修改</a> |
                    <a href="{:U('Helps/delete',array('id'=>$vo['id']))}">删除</a>
                  </td>
                </tr>
              </volist>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>